
#ifndef CONFIGDIALOG_H
#define CONFIGDIALOG_H

#include <BButton>
#include <BAudioInput>
#include <BAudioOutput>
#include <BComboBox>
#include <BSpinBox>
#include <BDialog>

using namespace BWE;

class ConfigDialog : public BDialog
{
public:
	ConfigDialog(BWidget* parent = 0);
	~ConfigDialog();

	void init(BAudioInput* audioInput, BAudioOutput* audioOutput);

protected:
	void slotFormatChanged(int current);
	void slotSampleRateEdited(int value);
	void slotChannelCountChanged(int channels);

private:
	BComboBox*		_inputDeviceComboBox;
	BComboBox*		_outputDeviceComboBox;
	BComboBox*		_formatComboBox;
	BComboBox*		_channelsComboBox;
	BSpinBox*		_sampleRateSpinBox;
	BButton*		_okButton;
	BButton*		_cancelButton;

	BAudioInputHolder	_audioInput;
	BAudioOutputHolder	_audioOutput;
};

#endif